#!/bin/sh

killall qpe

if [ -c /dev/input/event0 ]; then
    INPUT_PATH=/dev/input
else
    INPUT_PATH=/dev
fi
        
export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_CONFFILE=/usr/local/etc/ts.conf
export TSLIB_PLUGINDIR=/lib/ts
export TSLIB_CALIBFILE=/etc/pointercal
export QTDIR=/usr/local/Trolltech/QtEmbedded-4.7.2-arm/
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib

export QWS_MOUSE_PROTO="Tslib:$INPUT_PATH/event1 MouseMan:$INPUT_PATH/mouse1"

export QWS_KEYBOARD=TTY:/dev/tty1
export KDEDIR=/opt/kde

export HOME=/root

echo "switch to qt4 sucess"
